import QtQuick 2.5
import QtQuick.Controls 2.1
import ".."

Rectangle
{
    id: myNumberInput
    property alias text: numberTypeLabel.text
    border.color: Common.colorInvalid
    border.width: 1
    radius: 4
    Text
    {
        id: numberTypeLabel
        font.pixelSize: 16
        font.family: Common.fontMain
        color: Common.colorTextBlack
        anchors.centerIn: parent
    }
    MouseArea
    {
        anchors.fill: parent
        onClicked:
        {
            GET_UAC.playBeep()
            Common.mainHandle.showNumberKeyboard(numberCallback)
        }
    }

    function numberCallback(info)
    {
        if(info === null) return
        numberTypeLabel.text = info
    }
}
